package com.xcf.service.business.finance.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.finance.InvoiceService;
import com.xcf.util.PageData;
@Service
public class InvoiceServiceImpl implements InvoiceService{
@Resource
private DaoSupport dao;
	public List<Map> invoiceInfo(PageData pd) throws Exception {
		
		return (List<Map>) dao.findForList("invoice.findInvoiceInfo", pd);
	}
	@Override
	public List<Map> invoiceDetil(PageData pd) throws Exception {
		
		return (List<Map>) dao.findForList("invoice.findIncomeDetil", pd);
	}
	@Override
	public void saveInvoiceInfo(PageData pd) throws Exception {
		dao.save("invoice.saveInvoiceInfo", pd);
		
	}
	@Override
	public void updateApplyInfo(PageData pd) throws Exception {
		dao.update("invoice.invoiceApplyInfo", pd);
		
	}
	@Override
	public void isCancelAndRed(PageData pd) throws Exception {
		dao.update("invoice.isCancelAndRed", pd);
		
	}

}
